﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace EFCore.Dbfirst.Migrations
{
    public partial class info1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Users",
                columns: table => new
                {
                    Name = table.Column<string>(maxLength: 50, nullable: true),
                    Age = table.Column<int>(nullable: true),
                    Pwd = table.Column<string>(nullable: true),
                    DateTime = table.Column<DateTime>(nullable: false),
                    Id = table.Column<long>(nullable: false, defaultValueSql: "(CONVERT([bigint],(0)))")
                },
                constraints: table =>
                {
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Users");
        }
    }
}